public class Print {
    public static void sushuPrint(int data)
    {
        //定于范围1 - data
        System.out.println("1 - " + data + "中的素数有：");
        for(int i = 1;i <= data;i++)
        {
            int count1 = 2;
            for(int j = 2;j <= data;j++)
            {
                if(i == j || i == 1)
                    continue;
                if(i % j == 0)
                {
                    count1++;
                }
            }
            if(count1 == 2)
                System.out.print(i + " ");
        }
    }
}
